<?php 
	ini_set("display_errors", "On");
    $_db = include_once('lib/db.php');
    //include_once('lib/user.php');

    spl_autoload_register(function($className){
    	include_once 'lib/' . $className . '.php';
    });

    $user = new User($pdo);
    //var_dump($user->register('wuxiaobu','123'));
    //var_dump($user->login('wuxiaobu','123'));
    $article = new Article($pdo);
    var_dump($article->create('title','content',16));
